Skip to content

Support Bitcoin Core 31.1 - #669

Closed
ANAMASGARD wants to merge 1 commit into
rust-bitcoin:masterfrom
ANAMASGARD:feat/support-bitcoin-core-31.1
Closed

Support Bitcoin Core 31.1#669
ANAMASGARD wants to merge 1 commit into
rust-bitcoin:masterfrom
ANAMASGARD:feat/support-bitcoin-core-31.1

Conversation

@ANAMASGARD

@ANAMASGARD ANAMASGARD commented Jul 28, 2026

Copy link
Copy Markdown

Closes #657

Summary

  • Add support for Bitcoin Core 31.1.
  • Make 31.1 the latest supported release.
  • Reuse the existing v31 RPC client (accept RPC version 310100).
  • Add the official 31.1 checksum manifest.
  • Add 31.1 integration test and CI coverage.

Testing

  • cargo check --manifest-path bitcoind/Cargo.toml --all-targets --no-default-features --features=31_1,download
  • cargo test --features=31_1,download (integration_test)
  • cargo test --features=latest,download (integration_test)
  • cargo test --features=31_0,download (integration_test)
  • cargo run -- --tests ... 31 and cargo run all (verify)

Screenshot verification

image

Signed-off-by: Gaurav Chaudhary <chaudharygaurav2004@gmail.com>
@tcharding

Copy link
Copy Markdown
Member

Appreciate the effort. I'm allergic to LLM output. Can you trim down the wall of text please.

@tcharding

Copy link
Copy Markdown
Member

Oh woops I was too triggered by the LLM output to remember that dev is no longer on this repo.

@ANAMASGARD

Copy link
Copy Markdown
Author

@tcharding can you please tell me in PR description what are the things that you want to be changed? Thanks

@jamillambert

Copy link
Copy Markdown
Collaborator

@tcharding can you please tell me in PR description what are the things that you want to be changed? Thanks

I think the testing and screenshot verification bits are unnecessary, they are checked in CI.

Comment on lines +35 to 36
alias test311='BITCOIND_EXE=/opt/bitcoin-31.1/bin/bitcoind cargo test --features=31_1'
alias test31='BITCOIND_EXE=/opt/bitcoin-31.0/bin/bitcoind cargo test --features=31_0'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
alias test311='BITCOIND_EXE=/opt/bitcoin-31.1/bin/bitcoind cargo test --features=31_1'
alias test31='BITCOIND_EXE=/opt/bitcoin-31.0/bin/bitcoind cargo test --features=31_0'
alias test31='BITCOIND_EXE=/opt/bitcoin-31.1/bin/bitcoind cargo test --features=31_1'

This is just an example and better keep the format the same as the other versions that have point releases.

Comment thread bitcoind/src/versions.rs
Comment on lines +6 to 12
#[cfg(feature = "31_1")]
#[allow(dead_code)] // Triggers in --all-features builds.
pub const VERSION: &str = "31.1";

#[cfg(all(feature = "31_0", not(feature = "31_1")))]
#[allow(dead_code)] // Triggers in --all-features builds.
pub const VERSION: &str = "31.0";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[cfg(feature = "31_1")]
#[allow(dead_code)] // Triggers in --all-features builds.
pub const VERSION: &str = "31.1";
#[cfg(all(feature = "31_0", not(feature = "31_1")))]
#[allow(dead_code)] // Triggers in --all-features builds.
pub const VERSION: &str = "31.0";
#[cfg(feature = "31_1")]
#[allow(dead_code)] // Triggers in --all-features builds.
pub const VERSION: &str = "31.1";
#[cfg(all(feature = "31_0", not(feature = "31_1")))]
pub const VERSION: &str = "31.0";

@jamillambert

Copy link
Copy Markdown
Collaborator

Just remembered that we have moved to https://git.rust-bitcoin.org/rust-bitcoin/corepc.

Please open this PR again there with the above changes.

@tcharding tcharding closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Bitcoin 31.1

3 participants